<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
@include("layouts.common.head")
<!-- Fonts -->
    <link href="{{asset('static/css/company/common.css')}}" rel="stylesheet" type="text/css">
    <link href="{{ asset('static/css/company/company_index.css') }}" rel="stylesheet">
    <link href="{{asset('static/css/common_ajax_dialog.css')}}" rel="stylesheet" type="text/css">

    <!-- Styles -->
    <style>
        html {
            overflow-y: scroll;
        }
    </style>
</head>
<body>
<div id="app">
    @include("layouts.nav")
    @include("company.home.other_top_nav")
    <div class="index_main">
        <div class="ileft">
            <div class="hellow">
                <div class="tit"><span>{{$member->nickname}}，亲爱的用户</span><br/>今天是2018年12月26日&nbsp;&nbsp;&nbsp;星期三</div>

                <div class="td2">
                    <div id="J_sign_in" class="J_hoverbut "></div>
                </div>
                <div class="clear"></div>
                <div class="btnbox link_gray6">
                    <a href="javascript:;" class="J_addJobsDig btn1">发布职位</a>
                    <a href="javascript:;" class="btn2" id="refresh_jobs_all">刷新职位</a>
                    <a href="{{url('/resume')}}" class="btn3">搜索简历</a>
                </div>
            </div>
        </div>
        <div class="iright">

            @if(!$company->nature)
                <div class="cominfotip">
                    <div class="td1">
                        <div class="t">贵公司的资料还未填写完整，可能会影响您的招聘效果哦！</div>
                        <div class="v">完善公司基本信息、联系方式等，可以有效提高招聘成功率</div>
                    </div>
                    <div class="td2">
                        <a href="{{url('company/info')}}" class="btn_blue J_hoverbut btn_100_38 btn_border">马上完善资料</a>
                        <div class="J_companyinfo closs J_hoverbut" title="关闭"></div>
                    </div>
                    <div class="clear"></div>
                </div>
            @endif
            <div class="i_main">
                <div class="comlogo">
                    <div class="log link_blue">
                        上次登录： {{date('Y-m-d H:i:s',$member->last_login_time)}}
                    </div>
                    <div class="td1">
                        {{--<div class="logobox">--}}
                        {{--<a href="">--}}
                        {{--<img src="static/images/data/no_logo.png?1545787733">--}}
                        {{--</a>--}}
                        {{--</div>--}}
                    </div>
                    <div class="td2">
                        <div class="comname link_blue substring">
                            {{$company->name}} <a href="{{url('company/info')}}">编辑</a>
                        </div>
                        @if($company->nature)
                            <div class="txt_line mt8 link_blue">{{$company->nature_cn}} | {{$company->trade_cn}}
                                {{$company->scale_cn?" |".$company->scale_cn:$company->scale_cn}}
                            </div>
                        @else
                            <div class="txt_line mt8 link_blue">完善企业基本资料是招聘的第一步，立即 <a href="{{url('company/info')}}">完善资料</a>
                            </div>
                        @endif
                        @if($company->tag)
                            <div class="tag_group mt14">
                                @foreach($tags as $key=>$tag)
                                    <div class="group_cell">
                                        <div class="tag_cell">{{$tag->name}}</div>
                                    </div>
                                @endforeach
                                <div class="clear"></div>
                            </div>
                        @else
                            <div class="txt_line mt17 link_blue"><a href="{{url('company/info')}}">添加企业福利</a>，让职位更有魅力
                            </div>司的资料还未填写
                        @endif
                        <div class="checkbox mt15 link_blue">
                            <!--已经认证的叠加css  ok -->
                            @if($company->audit == 1)
                                <a href="javascript:;" class="btns btn1 ok">企业已认证</a>
                            @else
                                <a href="javascript:;" class="btns btn1">企业未认证</a>
                            @endif
                            @if($company->telephone)
                                |<a href="javascript:;" class="btns btn2 ok">手机已认证</a>
                            @else
                                |<a href="javascript:;" class="btns btn2">手机未认证</a>
                            @endif
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="counts">
                    <div class="cli">
                        <div class="item J_hoverbut" onclick="window.location='{{url("company/job/1")}}'">
                            <div class="n">{{$jobNumber}}</div>
                            <div class="t">招聘中的职位</div>
                        </div>
                    </div>
                    <div class="cli">
                        <div class="item J_hoverbut" onclick="window.location='{{url("company/job")}}'">
                            <div class="n">{{$jobStopNumber}}</div>
                            <div class="t">职位统计</div>
                        </div>
                    </div>
                    <div class="cli">
                        <div class="item J_hoverbut" onclick="window.location='{{url("company/resume/1")}}'">
                            <div class="n">{{$resumeNumber}}</div>
                            <div class="t">待处理简历</div>
                        </div>
                    </div>
                    <div class="cli">
                        <div class="item J_hoverbut" onclick="window.location='{{url("company/resume")}}'">
                            <div class="n">{{$resumeStopNumber}}</div>
                            <div class="t">简历统计</div>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                {{--<div class="data">--}}
                {{--<div class="titbg">--}}
                {{--<div class="btns">--}}
                {{--<div class="select_input input_140_30_div J_hoverinput J_dropdown J_listitme_parent">--}}
                {{--<span class="J_listitme_text">--}}
                {{--访客统计--}}
                {{--</span>--}}
                {{--<div class="dropdowbox12 J_dropdown_menu">--}}
                {{--<div class="dropdow_inner12">--}}
                {{--<ul class="nav_box">--}}
                {{--<li><a class="J_listitme statistics_select" href="javascript:;"--}}
                {{--data_k="type" data_val="visitor">访客统计</a></li>--}}
                {{--<li><a class="J_listitme statistics_select" href="javascript:;"--}}
                {{--data_k="type" data_val="viewjobs">职位浏览</a></li>--}}
                {{--<li><a class="J_listitme statistics_select" href="javascript:;"--}}
                {{--data_k="type" data_val="apply">应聘统计</a></li>--}}
                {{--</ul>--}}
                {{--</div>--}}
                {{--</div>--}}
                {{--<input class="J_listitme_code statistics_type" name="" type="hidden" value="visitor"/>--}}
                {{--</div>--}}
                {{--<div class="clear"></div>--}}
                {{--</div>--}}
                {{--<div class="btns1">--}}
                {{--<div class="select_input input_140_30_div J_hoverinput J_dropdown J_listitme_parent">--}}
                {{--<span class="J_listitme_text">--}}
                {{--最近7天--}}
                {{--</span>--}}
                {{--<div class="dropdowbox12 J_dropdown_menu">--}}
                {{--<div class="dropdow_inner12">--}}
                {{--<ul class="nav_box">--}}
                {{--<li><a class="J_listitme statistics_select" href="javascript:;"--}}
                {{--data_k="settr" data_val="7">最近7天</a></li>--}}
                {{--<li><a class="J_listitme statistics_select" href="javascript:;"--}}
                {{--data_k="settr" data_val="15">最近15天</a></li>--}}
                {{--<li><a class="J_listitme statistics_select" href="javascript:;"--}}
                {{--data_k="settr" data_val="30">最近30天</a></li>--}}
                {{--</ul>--}}
                {{--</div>--}}
                {{--</div>--}}
                {{--<input class="J_listitme_code statistics_settr" name="" type="hidden" value="7"/>--}}
                {{--</div>--}}
                {{--<div class="clear"></div>--}}
                {{--</div>--}}
                {{--<div class="more link_blue"><a href="javascript:;">查看详细>></a></div>--}}
                {{--<div class="clear"></div>--}}
                {{--</div>--}}
                {{--<div class="info statistics_wrap">功能开发中...</div>--}}
                {{--</div>--}}
                <div class="resumetit">
                    <div class="lt">推荐简历</div>
                    <div class="rt link_blue">
                        <a href="javascript:;" class="more J_refresh recommend_jobs">换一批</a></div>
                    <div class="clear"></div>
                </div>
                <div class="resumelist" style="min-height: 306px">

                    @foreach($groom as $item)
                        <div class="li">
                            <div class="bg J_hoverbut">
                                <div class="photobox">
                                    <a target="_blank"
                                       href="">
                                        @if($item->sex == 2)
                                            <img border="0" src="{{asset('static/images/data/15352996913.png')}}"
                                                 onerror="this.src=''"/>
                                        @else
                                            <img border="0" src="{{asset('static/images/data/15366672338.png')}}"
                                                 onerror="this.src=''"/>
                                        @endif
                                    </a>
                                </div>
                                <div class="info">
                                    <div class="name link_blue">
                                        <a target="_blank" href="">{{$item->nickname}}</a>
                                    </div>
                                    <div class="time">{{date("Y-m-d",$item->refresh_time)}}</div>
                                    <div class="clear"></div>
                                    <div class="txt">{{$item->sex == 1?'男':'女'}} | {{date('Y',time())-$item->birth}}岁 |
                                        {{$item->education_cn}} | {{$item->experience_cn}}工作经验 <br/>
                                        <div class="substring">{{$item->intention_cn}}</div>
                                    </div>
                                </div>
                                <div class="clear"></div>
                            </div>
                        </div>
                    @endforeach

                    {{--<div class="res_empty link_blue">--}}
                    {{--抱歉，没有找到相关简历，请<a href="{:U('jobs_add')}">发布职位</a>让求职者主动投递简历。--}}
                    {{--</div>--}}

                    <div class="clear"></div>
                </div>

            </div>
        </div>
        <div class="clear"></div>
    </div>
</div>

<script type="text/javascript" src="{{asset('static/js/jquery.modal.dialog.js')}}"></script>
<script type="text/javascript" src="<?php echo e(asset('static/js/jquery.disappear.tooltip.js')); ?>"></script>
<script>
    //触发刷新简历
    $('#refresh_jobs_all').die().live('click', function () {
        $.getJSON("{{url('resume/refresh')}}", function (result) {
            disapperTooltip('remind', '成功');
            setTimeout(function () {
                window.location.reload();
            }, 1000)

        })
    });
    $('.closs').die().live('click', function () {
        $(this).parents('.cominfotip').css("display", 'none')
    });
    $('.J_addJobsDig').die().live('click', function () {
        // var href = $(this).attr('href');
        //先去请求看是否已经付费用户
        $.getJSON("{{url('company/pay')}}", function (result) {
            if (result.status == 1) {
                window.location.href = "{{url('job/edit')}}";
            } else {
                if (result.status == 2) {
                    $(this).dialog({
                        title: '签约提示',
                        content: result.data.html,
                        border: false,
                        yes: function () {
                            window.location.href = "{{url('company/info')}}";
                        }
                    });
                } else {
                    $(this).dialog({
                        title: '签约提示',
                        content: result.data.html,
                        border: false,
                    });
                }
            }
        });

    });
    //更换推荐
    $('.recommend_jobs').click(function () {
        $.getJSON("{{url('ajax/groom')}}", function (result) {
            $('.resumelist').html(result.data.html)
        });
    })
</script>
@include('layouts.common.foot')
